package com.ssm.demo.service;

import com.github.pagehelper.PageInfo;
import com.ssm.demo.pojo.Test;
import com.ssm.demo.pojo.TestExample;
import com.ssm.demo.util.PageBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Zhang Yu
 * @description: TODO
 * @date 2024/3/27 7:22
 */
public interface TestService {
    long countByExample(TestExample example);

    int deleteByExample(TestExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Test record);

    int insertSelective(Test record);

    List<Test> selectByExample(TestExample example);

    Test selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Test record, @Param("example") TestExample example);

    int updateByExample(@Param("record") Test record, @Param("example") TestExample example);

    int updateByPrimaryKeySelective(Test record);

    int updateByPrimaryKey(Test record);

    PageInfo<Test> selectPager(PageBean pageBean);

    String testException();

}
